<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page language="java" import="com.augurit.gzcgwsp.common.web.DownLoadFile"%>
<jsp:useBean id="myDownload" scope="page" class="com.augurit.gzcgwsp.common.web.DownLoadFile" />
<%
		
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		myDownload.initialize(pageContext);
		String strFileName=java.net.URLDecoder.decode(request.getParameter("filename"),"utf-8");
		//转码
		//String filename=new String(strFileName.getBytes("ISO-8859-1"),"utf-8");
		//String charset = request.getParameter("charset");
		//if(charset==null){
		//	 charset = "ISO-8859-1";
		//}
		
		String strFilePath = request.getParameter("filepath");	
		response.reset();
		 myDownload.downloadFile(strFilePath,strFileName);
		
		out.clear();
		out = pageContext.pushBody();

%>